<template>
  <van-tabbar v-model="active" router>
    <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/question">发布问题</van-tabbar-item>
    <van-tabbar-item icon="setting-o" to="/my">我的</van-tabbar-item>
  </van-tabbar>
  <router-view></router-view>
</template>

<script setup>
import {ref} from 'vue'
const active=ref(0)
</script>
<style scoped>

</style>